
public class HelloWorld {
	public static void main(String[] args){
//		int arr[] = { 3, 60, 35, 2, 45, 320, 5 };
//
//        System.out.println("Array Before Sort");
//        for (int i = 0; i < arr.length; i++) {
//            System.out.print(arr[i] + " ");
//        }
//        System.out.println();

//        bubbleSort(arr);// sorting array elements using bubble sort
//        selectionSort(arr);// sorting array using selection sort
        
//        insertionSort(arr);// sorting array using insertion sort

//        System.out.println("Array After Sort");
//        for (int i = 0; i < arr.length; i++) {
//            System.out.print(arr[i] + " ");
//        }
		
		Programmer programmer = new Programmer();
		System.out.println(programmer.bonus);
		System.out.println(programmer.rmb);
	}
	
	static void bubbleSort(int[] arr){
		int n = arr.length;
		int temp = 0;
		for (int i = 0; i < n; i++){
			for (int j = 1; j < n - i; j++) {
				// swap elements
				if (arr[j - 1] > arr[j]) {
					temp = arr[j - 1];
					arr[j - 1] = arr[j];
					arr[j] = temp;
				}
				
			}
		}
	}
	
	public static void selectionSort(int[] arr) {
		
		for (int i = 0; i < arr.length; i++) {
			int index = i;
			for (int j = i + 1; j < arr.length; j++) {
				if (arr[j] < arr[index]) {
					index = j;
				}
			}
			
			int smallerNumber = arr[index];
			arr[index] = arr[i];
			arr[i] = smallerNumber;
		}
		
	}
	
	public static void insertionSort(int arr[]) {
		
		int n = arr.length;
		for (int j = 1; j < n; j++) {
			int key = arr[j];
			int i = j - 1;
			while ((i > -1) && (arr[i] > key)) {
				arr[i + 1] = arr[i];
				i--;
			}
			arr[i + 1] = key;
		}
		
	}
}

class Employee {
	float salary = 4000;
}

class Programmer extends Employee {
	int bonus = 10000;
	protected int rmb = 99999;
}